package com.zhihuiweijian.demo.service.impl;

import com.zhihuiweijian.demo.dao.HospitalMapper;
import com.zhihuiweijian.demo.model.Hospital;
import com.zhihuiweijian.demo.service.HospitalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HospitalServiceImpl implements HospitalService {

    @Autowired
    private HospitalMapper hospitalMapper;

    @Override
    public void insert(Hospital hospital) {
        hospitalMapper.insert(hospital);
    }

    @Override
    public List<Hospital> findAll() {
        return hospitalMapper.findAll();
    }
}
